package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.IdentityView
import com.hlhj.carview.bean.MyBaseBean
import com.hlhj.carview.module.IdentityModule

/**
 * Created by Never Fear   on 2018\12\20 0020.
Never More....
 */
class IdentityPresenter :BasePresenter<IdentityModule,IdentityView>(), IdentityView {

    override fun setCommitResult(myBaseBean: MyBaseBean) {
        view?.setCommitResult(myBaseBean)
    }
    fun identify(id_front:String,id_back:String,travel_front:String,travel_back:String,driving_front:String,driving_back:String,c: Context){
        module?.indentify(id_front, id_back, travel_front, travel_back, driving_front, driving_back, c)
    }
    override fun createModule() {
        module=IdentityModule()
        module.listener=this
    }
}